package sk.velkavrana.app.model.temp;

import org.apache.commons.lang.StringUtils;

/**
 * User: mtymes
 * Date: 2.11.2008
 * Time: 0:29:35
 */
// todo: implement all parameters or dynamic amount of parameters
public class TableInfo {

    private String name;
    private String catalog;
    private String schema;
    private String type;
    private String remarks;


    public TableInfo(String name, String catalog, String schema, String type, String remarks) {
        this.name = name;
        this.catalog = catalog;
        this.schema = schema;
        this.type = type;
        this.remarks = remarks;
    }


    public String getName() {
        return name;
    }


    public String getCatalog() {
        return catalog;
    }


    public String getSchema() {
        return schema;
    }


    public String getType() {
        return type;
    }


    public String getRemarks() {
        return remarks;
    }


    public String getFullName() {
        return (StringUtils.isBlank(catalog) ? "" : catalog + ".") + (StringUtils.isBlank(schema) ? "" : schema + ".") + name;

    }
}
